package com.okaixz.client.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author cdz
 * @since 2024-10-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_info")
@ApiModel(value = "OrderInfo对象", description = "")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    private Integer type;

    @ApiModelProperty(value = "支付方式0支付宝1微信")
    private Integer payType;

    @ApiModelProperty(value = "支付状态0未支付1支付")
    private Integer payState;

    @ApiModelProperty(value = "商品id")
    private Integer gid;

    @ApiModelProperty(value = "商品价格")
    private Double gprice;

    @ApiModelProperty(value = "商品名称")
    private String gname;

    @ApiModelProperty(value = "客户端名称")
    private String clientName;
    @ApiModelProperty(value = "微信支付端订单唯一标识")
    private String transaction_id;
    @ApiModelProperty(value = "微信支付类型")
    private String trade_type;


}
